package com.siashan.toolkit.api.security.anno;

import org.springframework.web.bind.annotation.Mapping;

import java.lang.annotation.*;

/**
 * 是否开启加密验签注解
 *
 * @author siashan
 * @version v1.0.1
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Mapping
@Documented
public @interface ApiSignEnable {

    /**
     * 入参是否验签
     *
     */
    boolean inSign() default true;

    /**
     * 出参是否加签
     *
     */
    boolean outSign() default true;
}